package com.lmabbe.tenant;

import com.lmabbe.common.global.context.LmabbeSessionUser;
import com.lmabbe.common.global.context.session.DefaultLmabbeSessionUserImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.kafka.annotation.EnableKafka;

/**
 * @author lmabbe
 * @data 2021/3/10 21:33
 */
@EnableKafka
@SpringBootApplication
public class TenantApplication {

    public static void main(String[] args) {
        SpringApplication.run(TenantApplication.class, args);
    }

    @Bean
    public LmabbeSessionUser defaultLmabbeSessionUser(){
        return new DefaultLmabbeSessionUserImpl();
    }
}
